cmake_minimum_required(VERSION 3.20) # 需要 CMake 3.14 或更高版本
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
project(kf_tests LANGUAGES CXX)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# 设置输出目录
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin")

# 设置第三方库的安装路径
set(PROJECT_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include)
set(PROJECT_LIB_DIR ${CMAKE_SOURCE_DIR}/lib)

# 添加子目录（测试程序）
# add_subdirectory(tests)
add_subdirectory(xy_test)